package com.duguo.dynamicmvc.demo.root;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.duguo.dynamicmvc.model.ExceptionModel;
import com.duguo.dynamicmvc.model.Model;

public class RootController{
	
	private static Log log=LogFactory.getLog(RootController.class);
    
    public void wrong(Model model) {
    	throw new RuntimeException("exception test message");
    }
    
    public void handleException(ExceptionModel model) {
    	log.debug(model.getException().getMessage(),model.getException());
    }
}
